package com.ruoyi.material.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出库单对象 tb_warehouse_out
 *
 * @author wng
 * @date 2024-08-04
 */
public class WarehouseOut extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 出库单id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Excel(name = "出库单编号")
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 出库单标题
     */
    @Excel(name = "出库单标题")
    private String title;

    /**
     * 用途
     */
    @Excel(name = "用途")
    private String purpose;

    /**
     * 0正常 1删除
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("title", getTitle())
                .append("remark", getRemark())
                .append("purpose", getPurpose())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
